* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* 添加盒模型 */
}

html,
body {
    height: 100%;
}

.box {
    width: 100%;
    height: 99%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.message-box {
    display: flex;
    flex: 1;
    flex-direction: column;
    height: 90%;
    /* 调整消息框高度 */
    width: 80%;
    /* 调整消息框宽度 */
    border: 2px solid black;
    border-radius: 3%;
    padding: 1%;
    margin: 10px;
    overflow-y: auto;
    /* 添加滚动条 */
}

.my-message {
    background-color: #0afd26;
    align-self: flex-end;
    /* 使得用户消息靠右显示 */
    margin-top: 5px;
    padding: 5px;
    position: relative;
    right: 5%;
}

.my-message-column {
    background-color: #0afd26;
    align-self: flex-end;
    /* 使得用户消息靠右显示 */
    margin-top: 5px;
    padding: 5px;
    border-radius: 5px;
}

.userFrame {
    align-self: flex-start;
    background-color: #e0f7fa;
}

.headSculpture {
    border-radius: 90%;
    padding: 5px;
    display: inline-block;
    background-color: white;
}

.time-message {
    padding: 5px;
    display: inline-block;
}

.system-message {
    align-self: flex-start;
    background-color: #e0f7fa;
    margin-top: 5px;
    padding: 5px;
    clear: both;
    position: relative;
    left: 5%;
}

.system-message-column {
    align-self: flex-start;
    background-color: #e0f7fa;
    margin-top: 5px;
    padding: 5px;
    clear: both;
    border-radius: 5px;
}

.input-box {
    width: 80%;
    height: 15%;
    margin-top: 10px;
    /* 调整上边距 */
    position: relative;
    /* 添加相对定位 */
    display: flex;
    /* justify-content: space-between; */
}

.input-box button {
    position: absolute;
    right: 0.5%;
    top: 67%;
    height: 30%;
    padding: 5px 10px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    z-index: 1;
}

textarea {
    width: 100%;
    height: 100%;
    border: 2px solid black;
    padding: 5px;
    resize: none;
    /* 禁用大小调整功能 */
}

textarea.resize-vertical {
    resize: vertical;
    /* 允许垂直方向调整大小 */
}

textarea.resize-horizontal {
    resize: horizontal;
    /* 允许水平方向调整大小 */
}

ul {
    list-style-type: none;
    padding: 0;
    position: absolute;
    width: 300px;
    /* 与输入框宽度相同 */
    background-color: #fff;
    /* 设置背景颜色 */
    border: 1px solid #ccc;
    /* 设置边框 */
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    /* 添加阴影效果 */
    bottom: calc(100% + 10px);
    /* 与输入框顶部对齐 */
    left: 0;
    /* 与输入框左对齐 */
    z-index: 1000;
    /* 确保在顶层显示 */
}

li {
    padding: 10px;
    cursor: pointer;
}

li:hover {
    background-color: #f4f4f4;
}